package com.lee.baseXml;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;
import java.util.Arrays;

public class Provider {


    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context
                = new ClassPathXmlApplicationContext("provider.xml");
        context.start();
        Arrays.stream(context.getBeanDefinitionNames()).forEach(System.out::println);

        System.out.println("provider启动");
        System.in.read(); // 按任意键退出
    }
}
